//i=1;
//cpi=cell();
w=rand(3,1);
pls=genpls2(w,1);
alph=.1;
//h=compor(pls);//TODO
//cpi(i,1).entries=pls;
//cpi(i,2).entries=h;
for k=1:100
    delr=grad(w,pls,epls,q1,q2);//TODO pls etc
    w=w+alph*delr;
    //rwf=calcr(w,pls);
    pls=genpls2(w,1);
end
